package com.eagle.web.servlet.support;

import com.eagle.web.config.DispatcherServletConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/***
 * Description
 *
 * @author: eagle
 * @since: 2019/1/8
*/
public class DefaultAnnotationConfigDispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {

	@Override
	protected Class<?>[] getRootConfigClasses() { //web.xml
		return new Class[0];
	}

	@Override
	protected Class<?>[] getServletConfigClasses() {  //DispatcherServlet scan
		return new Class[]{DispatcherServletConfig.class};
	}

	@Override
	protected String[] getServletMappings() {
		return new String[]{"/"};
	}
}
